package com.noyes4j.system.api.feign;

import com.noyes4j.common.constant.ServiceNameConstants;
import com.noyes4j.common.core.domain.R;
import com.noyes4j.system.api.feign.factory.RemoteDeviceFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
* @Description:    设备管理 Feign服务层
* @Author:         luoyhong
* @CreateDate:     2021/2/4 14:16
* @UpdateUser:     luoyhong
* @UpdateDate:     2021/2/4 14:16
* @UpdateRemark:   修改内容
* @Version:        1.0
*/
@FeignClient(name = ServiceNameConstants.DEVICE_SERVICE, fallbackFactory = RemoteDeviceFallbackFactory.class)
public interface RemoteDeviceService
{
    @PostMapping("wxAirKiss/getAirKissConfigData")
    public R getAirKissConfigData(@RequestParam("wifiSsid") String wifiSsid,@RequestParam("wifiPwd") String wifiPwd,@RequestParam("jsCode")String jsCode);

    @GetMapping("wxAirKiss/getAirKissQrCode")
    public void getAirKissQrCode(@RequestParam("path") String path);

    @PostMapping("wxAirKiss/bindDeviceWithWechat")
    public R bindDeviceWithWechat(@RequestParam("sn") String sn,@RequestParam("openid") String openid);

    @GetMapping("wxAirKiss/getTest")
    public R getTest(@RequestParam("msg") String msg);

    @PostMapping("wxAirKiss/postTest")
    public R postTest(@RequestParam("msg") String msg);
}
